package _4_8;

public class Discipline {
	private String name;
	private int nExercises;
	private int nLectures;

	public Discipline () {
		name = "";
		nExercises = 0;
		nLectures = 0;
	}

	public Discipline (String name, int nExercises, int nLectures) {
		this.name = name;
		this.nExercises = nExercises;
		this.nLectures = nLectures;
	}

	public String getName () {
		return this.name;
	}

	public int getNExercises () {
		return this.nExercises;
	}

	public int getNLectures () {
		return this.nLectures;
	}

	public void print () {
		System.out.println ("Discipline: " + this.name);
		System.out.println ("num Exercises:" + this.nExercises);
		System.out.println ("num Lectures:" + this.nLectures);
	}

	public void setName (String name) {
		this.name = name;
	}

	public void setNExercises (int nExercises) {
		this.nExercises = nExercises;
	}

	public void setNLectures (int nLectures) {
		this.nLectures = nLectures;
	}
}
